home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 November / CPNL0711.ISO / admin / secure / Tor - Privoxy - Vidalia.exe / Privoxy / templates / show-url-info < prev    next >
Text File  |  2006-11-04  |  6KB  |  189 lines

  1. ##########################################################
  2. #
  3. # Show-Url-Info-CGI Output template for Privoxy.
  4. #
  5. #
  6. # USING HTML TEMPLATES:
  7. # ---------------------
  8. #
  9. # Template files are written win plain HTML, with a few
  10. # additions:
  11. # - Lines that start with a '#' character like this one
  12. #   are ignored
  13. #
  14. # - Each item in the below list of exported symbols will
  15. #   be replaced by dynamically generated text, if they
  16. #   are enclosed in '@'-characters. E.g. The string @version@
  17. #   will be replaced by the version number of Privoxy.
  18. #
  19. # - One special application of this is to make whole blocks
  20. #   of the HTML template disappear if the condition <name>
  21. #   is not given. Simply enclose the block between the two
  22. #   strings @if-<name>start and if-<name>-end@. The strings
  23. #   should be placed in HTML comments (<!-- -->), so the
  24. #   html structure won't be messed when the magic happens.
  25. #   
  26. # USABLE SYMBOLS IN THIS TEMPLATE:
  27. # --------------------------------
  28. #
  29. #  my-ip-addr:
  30. #    The IP-address that the client used to reach this proxy
  31. #  my-hostname:
  32. #    The hostname associated with my-ip-addr
  33. #  admin-address:
  34. #    The email address of the pxoxy's administrator, as configured
  35. #    in the config file
  36. #  default-cgi:
  37. #    The URL for the "main menu" builtin CGI of this proxy
  38. #  menu:
  39. #    List of <li> elements linking to the other available CGIs
  40. #  version:
  41. #    The version number of the proxy software
  42. #  code-status:
  43. #    The development status of the proxy software: "alpha", "beta",
  44. #    or "stable".
  45. #  homepage:
  46. #    The URL of the SourceForge ijbswa project, who maintains this
  47. #    software.
  48. #
  49. # CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
  50. # ------------------------------------------------------------------
  51. #
  52. #  unstable:
  53. #    this is an alpha or beta release of the proxy software
  54. #  have-adminaddr-info:
  55. #    An e-mail address for the local Privoxy adminstrator has
  56. #    been specified and is available through the "admin-address"
  57. #    symbol
  58. #  have-proxy-info:
  59. #    A URL for online documentation about this proxy has been
  60. #    specified and is available through the "proxy-info-url"
  61. #    symbol
  62. #  have-help-info:
  63. #    If either have-proxy-info is true or have-adminaddr-info is
  64. #    true, have-help-info is true.  Used to conditionally include
  65. #    a grey box for any and all help info.
  66. #  url-given:
  67. #    The CGI was called with a url parameter. In that case, the
  68. #    following symbols are available:
  69. #    url:
  70. #      The given URL
  71. #    default:
  72. #      The system default for actions
  73. #    matches:
  74. #      The list of all matches in the actions file that this URL
  75. #      produced, along with the actions that were triggered by
  76. #      these matches
  77. #    final:
  78. #      The actions that are associated with the URL at the end of
  79. #      the matching process
  80. #
  81. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  82. <html>
  83.  
  84. <head>
  85.   <title>Privoxy@@my-hostname@ URL Info</title>
  86.   <meta http-equiv="Content-Style-Type" content="text/css">
  87.   <meta http-equiv="Content-Script-Type" content="text/javascript">
  88.   <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  89.   <meta name="robots" content="noindex,nofollow">
  90.   <link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
  91. </head>
  92.  
  93. <body>
  94.  
  95.   <table cellpadding="20" cellspacing="10" border="0" width="100%">
  96.     <tr>
  97.       <td class="title">
  98.  
  99. #include mod-title
  100.  
  101.       </td>
  102.     </tr>
  103.  
  104. <!-- @if-unstable-start -->
  105. # This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
  106.     <tr>
  107.       <td class="warning">
  108.  
  109. #include mod-unstable-warning
  110.  
  111.       </td>
  112.     </tr>
  113. <!-- if-unstable-end@ -->
  114.  
  115. <!-- @if-url-given-start -->
  116.     <tr>
  117.       <td class="box">
  118. <!-- @if-https-start -->
  119.         <h2>NOTE:</h2>
  120.         <p>This is a secure (https:) URL, so the part after the "/" is ignored.
  121.           This is a feature of the HTTPS protocol - the exact address of the
  122.           page you're visiting is hidden.  Privoxy can only detect the host
  123.           part of the URL.</p>
  124.         <p> </p>
  125. <!-- if-https-end@ -->
  126.         <h2>Matches for <a href="@url@">@url@</a>:</h2>
  127.         <p>@matches@</p>
  128.       </td>
  129.     </tr>
  130.  
  131.     <tr>
  132.       <td class="box">
  133.         <h2>Final results:</h2>
  134.         <p><b>@final@</b></p>
  135.       </td>
  136.     </tr>
  137. <!-- if-url-given-end@ -->
  138.  
  139.     <tr>
  140.       <td class="box">
  141.         <h2>Look up the actions for a 
  142. <!-- @if-url-given-start -->new<!-- if-url-given-end@ -->
  143.           URL:</h2>
  144.         <form method="GET" action="@default-cgi@show-url-info">
  145.           <p>
  146.             <input type="text" name="url" size="80" value="@url@"> 
  147.             <input type="submit" value="Go">
  148.           </p>
  149.         </form>
  150.       </td>
  151.     </tr>
  152.  
  153.     <tr>
  154.       <td class="box">
  155.         <h2>More Privoxy:</h2>
  156.         <ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
  157.       </td>
  158.     </tr>
  159.  
  160.     <tr>
  161.       <td class="info">
  162.  
  163. #include mod-support-and-service
  164.  
  165.       </td>
  166.     </tr>
  167.  
  168. <!-- @if-have-help-info-start -->
  169.     <tr>
  170.       <td class="info">
  171.  
  172. #include mod-local-help
  173.  
  174.       </td>
  175.     </tr>
  176. <!-- if-have-help-info-end@ -->
  177.     
  178.  
  179.      <tr>
  180.       <td>
  181.         <p class="small">Valid <a href="http://validator.w3.org/">HTML 4.01 Strict</a></p>
  182.       </td>
  183.     </tr>   
  184.   </table>
  185.  
  186. </body>
  187. </html>
  188.